package com.lmk.service.impl;

import com.lmk.domain.Store;
import com.lmk.mapper.StoreMapper;
import com.lmk.service.StoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class StoreServiceImpl implements StoreService {
    @Autowired
    private StoreMapper storeMapper;


    @Override
    public List<Store> getAll() {
        return storeMapper.getAll();
    }

    @Override
    public Store getById(Long id) {
        return storeMapper.getById(id);
    }

    @Override
    public void add(Store store) {
        storeMapper.add(store);
    }

    @Override
    public void update(Store store) {
        storeMapper.update(store);
    }

    @Override
    public void del(Long id) {
        storeMapper.del(id);
    }
}
